import { RouteRecordRaw } from "vue-router";
import layout from '../../layout/index.vue';
export const publicRoutes: Readonly<RouteRecordRaw[]> = [
  {
    path: "/login",
    component: () => import("../../views/Login/index.vue"),
  },
  {
    path: "/",
    name:'layout',
    component: layout,
    redirect: "/home",
    children: [
      {
        path: "/home",
        name: "Home",
        component: () => import("../../views/Home/index.vue"),
        meta: {
          title: "首页",
          icon: "EpHomeFilled",
        },
      },
    ],
  },
  {
    path:'/error',
    name: 'error',
    component: () => import("../../views/Error.vue"),
  },
];
